package com.HRs.Service;

import com.HRs.Dao.PatientDao;
import com.HRs.Dao.PatientDaolmpl;
import com.HRs.domain.DoctorOrdered;
import com.HRs.domain.Patient;
import com.HRs.domain.Visit;
import com.HRs.domain.patientorder_info;

import java.util.ArrayList;

public class PatientServicelmpl implements PatientService{
    PatientDao dao = new PatientDaolmpl();

    @Override
    public boolean RegisterFor_p(Patient p) {
        return dao.RegisterFor_p(p);
    }

    @Override
    public void Order_p(patientorder_info pi){
        dao.Order_p(pi);
    }

    @Override
    public boolean Login_p(String Id, String Password) {
        return dao.Login_p(Id, Password);
    }

    @Override
    public ArrayList<Patient> get_Dta() {
        return dao.get_pat();
    }

    @Override
    public void delete_row(int row) {
        dao.delete_row(row);
    }

    @Override
    public void insert(Patient pat) {
        dao.insert(pat);
    }

    @Override
    public ArrayList<patientorder_info> Search_hisInfo(String id) {
        return dao.Search_hisInfo(id);
    }

    @Override
    public ArrayList<DoctorOrdered> Search_OrderInfo(String dp) {
        return dao.Search_OrderInfo(dp);
    }

    @Override
    public void flush_DocInfo() {
        dao.flush_DocInfo();
    }

    @Override
    public void flush_SetZero_DocInfo() {
        dao.flush_SetZero_DocInfo();
    }

    @Override
    public String get_Pid() {
        return dao.get_Pid();
    }

    @Override
    public ArrayList<DoctorOrdered> Search_OrderInfo_Zd(String dp, String dt) {
        return dao.Search_OrderInfo_Zd(dp, dt);
    }

    @Override
    public ArrayList<String> get_DocName(String dp) {
        return dao.get_DocName(dp);
    }
}
